package com.yishun.springboot.mapper;

import java.util.List;
import java.util.Map;
import java.util.Set;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface RoleMapper {

	Set<String> getRoleNamesByUsername(String username);

	// 获取权限以及接口名称跟权限用于配置ShiroConfig
	List<Map<String, Object>> getRoleAndInterface();

	Set<Object> getById(String username);

	Integer delTbUserMenu(String userNamerOrRoleId);

	List<Map<String, Object>> getRolesAll(@Param("map") Map<String, Object> map);
}
